package com.FrameWork.Entity;

import java.io.Serializable;

public class CustomerInfoEntity implements Serializable 
{
    /**
     * 尚未使用，字段数组留来日后用。
     */
    @SuppressWarnings("unused")
    private  final String[] fields_CUSTOMERS_INFO    = {
	    "ID",
	    "CODE",
	    "NAME",
	    "NAME2",
	    "IDENTITY1",
	    "IDENTITY2",
	    "LOCAL_LEVEL1_CODE",
	    "CUSTOMER_PRODUCT_LIST_ID",
	    "MEASURE_PROFILE_ID",
	    "ADDRESS_LINE",
	    "ADDRESS_LINE2",
	    "TELEPHONE",
	    "FAX",
	    "E_MAIL",
	    "SLOG_CODE",
	    "CUST_CLASS_CODE"			     };

    /**
     * 终端编号
     */
    public  String	  ID		       = "";
    /**
     * 终端代码
     */
    public  String	  CODE		     = "";
    /**
     * 终端名称
     */
    public  String	  NAME		     = "";
    /**
     * 终端名称2
     */
    public  String	  NAME2		    = "";
    /**
     * 终端经度
     */
    public  String	  LONGITUDE		= "";
    /**
     * 终端纬度
     */
    public  String	  LATITUDE		= "";
    /**
     * 渠道类型
     */
    public  String	  LOCAL_LEVEL1_CODE	= "";
    /**
     * 客户分销列表
     */
    public  String	  CUSTOMER_PRODUCT_LIST_ID = "";
    /**
     * 指标组编号
     */
    public  String	  MEASURE_PROFILE_ID       = "";
    /**
     * 终端地址1
     */
    public  String	  ADDRESS_LINE	     = "";
    /**
     * 终端地址2
     */
    public  String	  ADDRESS_LINE2	    = "";
    /**
     * 固定电话
     */
    public  String	  TELEPHONE		= "";
    /**
     * 移动电话
     */
    public  String	  FAX		      = "";
    /**
     *经销商代码
     */
    public  String	  CHAINCODE		      = "";
    /**
     *暂时不用
     */
    public  String	  LOCALLEVEL2CODE		      = "";
    /**
     *默认包装单位
     */
    public  String	  DEFAULTUOMCODE		      = "";
    /**
     * 邮箱
     */
    public  String	  E_MAIL		   = "";
    /**
     * 联系人
     */
    public  String	  SLOG_CODE		= "";
    /**
     * 终端类型
     */
    public  String	  CUST_CLASS_CODE	  = "";
    
    public String DISTANCE;
    @Override
    public String toString()
    {
    	if(DISTANCE != null)
    		return NAME + ( (DISTANCE != null &&!DISTANCE.equals("0")) ?  "  (" + DISTANCE +"米)" : "");
    	else
    		return NAME;
    }

}
